<?php

class BaseAction extends Action {
	
	
	//初始化
	public function _initialize() {
		
		header("Content-Type:text/html; charset=utf-8");
		
		//加载分类导航
		$cate = D('Cate');
    	
    	if(S('cateList') == NULL) {
    		$list = $cate->loadCateList();
    		S('cateList',$list);  //缓存
    	} else {
    		$list = S('cateList');
    	}
    	$this->assign('cateList',$list);	
	}
	
}

?>